package com.dsr.dao;

import com.dsr.bean.SectionBean;
import com.dsr.entity.Section;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * (Section)表数据库访问层
 *
 * @author dsr
 * @since 2020-08-13
 */
public interface SectionDao extends Mapper<Section> {

    List<SectionBean> getSectionTree();

    void deleteSection(@Param("id") String id);
    List<SectionBean> listChildren();

}